package com.ec.mn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ec.mn.entity.HealthRecord;
import com.ec.mn.entity.WarningRules;
import java.util.List;

public interface WarningRulesService extends IService<WarningRules> {
    // 根据健康数据类型查询启用的预警规则
    WarningRules getActiveRuleByRecordType(String recordType);
    // 查询所有启用的规则
    List<WarningRules> getAllActiveRules();
    String buildWarningMessage(HealthRecord record);
    String checkAndWarn(HealthRecord healthRecord);
    List<String> getAllRecordTypes();


} 
